<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改员工信息')" />
    <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-birthday-edit" th:object="${yzStudentBirthday}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">姓名：</label>
                <div class="col-sm-8">
                    <input name="xingMing" th:field="*{xingMing}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">性别：</label>
                <div class="col-sm-8">
                    <select name="xingBie" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{xingBie}"></option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">合同主体：</label>
                <div class="col-sm-8">
                    <select name="xueXiao" class="form-control m-b" th:with="type=${@dict.getType('school')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{xueXiao}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">一级部门：</label>
                <div class="col-sm-8">
                    <input name="nianJi" th:field="*{nianJi}" class="form-control" type="text" placeholder="例如 教育中心" required>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">二级部门：</label>
                <div class="col-sm-8">
                    <input name="erjibumen" th:field="*{erjibumen}" class="form-control" type="text"  placeholder="例如  研究院">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">三级部门：</label>
                <div class="col-sm-8">
                    <input name="sanjibumen" th:field="*{sanjibumen}" class="form-control" type="text"  placeholder="例如 软件组">
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-3 control-label">工作地区：</label>
                <div class="col-sm-8">
                    <input name="gzdq" th:field="*{gzdq}" class="form-control" type="text" >
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">职位：</label>
                <div class="col-sm-8">
                    <input name="zhuanYe" th:field="*{zhuanYe}" class="form-control" type="text" required>
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-3 control-label">入职日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="rztime" class="form-control" th:field="*{rztime}"  placeholder="yyyy-MM-dd" type="text"  >
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">手机号码：</label>
                <div class="col-sm-8">
                    <input name="shouJiHaoMa" th:field="*{shouJiHaoMa}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">生日：</label>
                <div class="col-sm-8">
                    <input name="shengRi" th:field="*{shengRi}"  maxlength="8" class="form-control" type="text" placeholder="例如：19950512" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">农或新：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('nongorxin')}">
                        <input type="radio" th:id="${'nongHuoXin_' + dict.dictCode}" name="nongHuoXin" th:value="${dict.dictValue}" th:field="*{nongHuoXin}">
                        <label th:for="${'nongHuoXin_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注信息：</label>
                <div class="col-sm-8">
                    <textarea name="remark" maxlength="500" class="form-control" rows="3">[[*{remark}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js"/>
    <script type="text/javascript">
        var prefix = ctx + "system/birthday";
        $("#form-birthday-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-birthday-edit').serialize());
            }
        }

        $("input[name='rztime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>
